From: Florian Müllner Date: Thu, 7 Sep 2023 16:00:21 +0000 (+0200) Subject: screenshot: Only handle mode-switch shortcut when supported X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~312^2^2~20 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=671df28a509ae208e158976f0855d91fdbea16a1;p=gnome-shell.git screenshot: Only handle mode-switch shortcut when supported We currently handle the 'v' key to switch between recording- and screenshot mode regardless of whether screen recordings are supported. This is clearly wrong, don't do that. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6990 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index d63653396..c5c089c6b 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2040,7 +2040,8 @@ export const ScreenshotUI = GObject.registerClass({ return Clutter.EVENT_STOP; } - if (symbol === Clutter.KEY_v || symbol === Clutter.KEY_V) { + if (this._castButton.reactive && + (symbol === Clutter.KEY_v || symbol === Clutter.KEY_V)) { this._castButton.checked = !this._castButton.checked; return Clutter.EVENT_STOP; }